home *** CD-ROM | disk | FTP | other *** search
- Path: cantaloupe.srv.cs.cmu.edu!bmm
- From: bmm+@BMM.PC.CS.CMU.EDU (Bruce Maggs)
- Newsgroups: comp.lang.c++
- Subject: memory model question
- Date: 13 Jan 1996 20:26:00 GMT
- Organization: Carnegie-Mellon University, School of Computer Science
- Message-ID: <4d94go$sp0@cantaloupe.srv.cs.cmu.edu>
- NNTP-Posting-Host: bmm.pc.cs.cmu.edu
- Originator: bmm@BMM.PC.CS.CMU.EDU
-
-
- Hi,
-
- I'm compiling a C program using Borland's C++ for DOS. It's a large
- program, but doesn't use much static memory. I've selected the
- "small" memory model. The program compiles and runs without any
- problems, but the length of the .exe file that the compiler produces
- is 148K. I thought that in the small memory model the length of the
- code would be limited to one segment, i.e., 64K. I'm curious about
- what's going on here. Does the compiler automatically split my code
- into two or more segments?
-
- Thanks,
-
- Bruce Maggs
-